#ifndef _PAGE_H_
#define _PAGE_H_

#include "sc95f.h"

#define autoFeed 0
#define setFeedTime 1
#define sountTurn 2
#define setFeedSize 3
#define childLockTurn 4

void Page_indexInit();
void Page_indexTime(uint8_t nowhour, uint8_t nowminute, uint8_t nowsecond);

void Page_selectInit();
void Page_showSelect(uint8_t select);

void Page_feedTimeInit();
void Page_showSetFeedTime(uint8_t time_select, uint8_t feedTime[][3]);
void Page_feedTimeFresh();

void Page_feedSizeInit();
void Page_showSetFeedSize(uint8_t feed_select, uint8_t feedSize[2]);
void Page_feedSizeFresh();

uint8_t const *const Page_getFeedTime(uint8_t feed_time_x);

#define PageAutoFeed_Flag (BIT(autoFeed))
#define PageSound_Flag (BIT(sountTurn))
#define PageChildLock_Flag (BIT(9))

#define PageFeedTime0On_Flag (BIT(3))
#define PageFeedTime1On_Flag (BIT(4))
#define PageFeedTime2On_Flag (BIT(5))

#define PageFeedTimeHour_Flag (BIT(6))
#define PageFeedTimeMinute_Flag (BIT(7))
#define PageFeedTimeSecond_Flag (BIT(8))


void Page_FlagShift(uint32_t flag);
void Page_FlagSet(uint32_t flag);
void Page_FlagReset(uint32_t flag);
bool Page_FlagGet(uint32_t flag);

#endif
